package com.opal.modules.costReportForm.entity.table;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class CostReportInitialInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CostReportInitialInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSubIdIsNull() {
            addCriterion("sub_id is null");
            return (Criteria) this;
        }

        public Criteria andSubIdIsNotNull() {
            addCriterion("sub_id is not null");
            return (Criteria) this;
        }

        public Criteria andSubIdEqualTo(Integer value) {
            addCriterion("sub_id =", value, "subId");
            return (Criteria) this;
        }

        public Criteria andSubIdNotEqualTo(Integer value) {
            addCriterion("sub_id <>", value, "subId");
            return (Criteria) this;
        }

        public Criteria andSubIdGreaterThan(Integer value) {
            addCriterion("sub_id >", value, "subId");
            return (Criteria) this;
        }

        public Criteria andSubIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sub_id >=", value, "subId");
            return (Criteria) this;
        }

        public Criteria andSubIdLessThan(Integer value) {
            addCriterion("sub_id <", value, "subId");
            return (Criteria) this;
        }

        public Criteria andSubIdLessThanOrEqualTo(Integer value) {
            addCriterion("sub_id <=", value, "subId");
            return (Criteria) this;
        }

        public Criteria andSubIdIn(List<Integer> values) {
            addCriterion("sub_id in", values, "subId");
            return (Criteria) this;
        }

        public Criteria andSubIdNotIn(List<Integer> values) {
            addCriterion("sub_id not in", values, "subId");
            return (Criteria) this;
        }

        public Criteria andSubIdBetween(Integer value1, Integer value2) {
            addCriterion("sub_id between", value1, value2, "subId");
            return (Criteria) this;
        }

        public Criteria andSubIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sub_id not between", value1, value2, "subId");
            return (Criteria) this;
        }

        public Criteria andSuperIdIsNull() {
            addCriterion("super_id is null");
            return (Criteria) this;
        }

        public Criteria andSuperIdIsNotNull() {
            addCriterion("super_id is not null");
            return (Criteria) this;
        }

        public Criteria andSuperIdEqualTo(Integer value) {
            addCriterion("super_id =", value, "superId");
            return (Criteria) this;
        }

        public Criteria andSuperIdNotEqualTo(Integer value) {
            addCriterion("super_id <>", value, "superId");
            return (Criteria) this;
        }

        public Criteria andSuperIdGreaterThan(Integer value) {
            addCriterion("super_id >", value, "superId");
            return (Criteria) this;
        }

        public Criteria andSuperIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("super_id >=", value, "superId");
            return (Criteria) this;
        }

        public Criteria andSuperIdLessThan(Integer value) {
            addCriterion("super_id <", value, "superId");
            return (Criteria) this;
        }

        public Criteria andSuperIdLessThanOrEqualTo(Integer value) {
            addCriterion("super_id <=", value, "superId");
            return (Criteria) this;
        }

        public Criteria andSuperIdIn(List<Integer> values) {
            addCriterion("super_id in", values, "superId");
            return (Criteria) this;
        }

        public Criteria andSuperIdNotIn(List<Integer> values) {
            addCriterion("super_id not in", values, "superId");
            return (Criteria) this;
        }

        public Criteria andSuperIdBetween(Integer value1, Integer value2) {
            addCriterion("super_id between", value1, value2, "superId");
            return (Criteria) this;
        }

        public Criteria andSuperIdNotBetween(Integer value1, Integer value2) {
            addCriterion("super_id not between", value1, value2, "superId");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNull() {
            addCriterion("product_name is null");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNotNull() {
            addCriterion("product_name is not null");
            return (Criteria) this;
        }

        public Criteria andProductNameEqualTo(String value) {
            addCriterion("product_name =", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotEqualTo(String value) {
            addCriterion("product_name <>", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThan(String value) {
            addCriterion("product_name >", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThanOrEqualTo(String value) {
            addCriterion("product_name >=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThan(String value) {
            addCriterion("product_name <", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThanOrEqualTo(String value) {
            addCriterion("product_name <=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLike(String value) {
            addCriterion("product_name like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotLike(String value) {
            addCriterion("product_name not like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameIn(List<String> values) {
            addCriterion("product_name in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotIn(List<String> values) {
            addCriterion("product_name not in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameBetween(String value1, String value2) {
            addCriterion("product_name between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotBetween(String value1, String value2) {
            addCriterion("product_name not between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andSlManHourIsNull() {
            addCriterion("sl_man_hour is null");
            return (Criteria) this;
        }

        public Criteria andSlManHourIsNotNull() {
            addCriterion("sl_man_hour is not null");
            return (Criteria) this;
        }

        public Criteria andSlManHourEqualTo(String value) {
            addCriterion("sl_man_hour =", value, "slManHour");
            return (Criteria) this;
        }

        public Criteria andSlManHourNotEqualTo(String value) {
            addCriterion("sl_man_hour <>", value, "slManHour");
            return (Criteria) this;
        }

        public Criteria andSlManHourGreaterThan(String value) {
            addCriterion("sl_man_hour >", value, "slManHour");
            return (Criteria) this;
        }

        public Criteria andSlManHourGreaterThanOrEqualTo(String value) {
            addCriterion("sl_man_hour >=", value, "slManHour");
            return (Criteria) this;
        }

        public Criteria andSlManHourLessThan(String value) {
            addCriterion("sl_man_hour <", value, "slManHour");
            return (Criteria) this;
        }

        public Criteria andSlManHourLessThanOrEqualTo(String value) {
            addCriterion("sl_man_hour <=", value, "slManHour");
            return (Criteria) this;
        }

        public Criteria andSlManHourLike(String value) {
            addCriterion("sl_man_hour like", value, "slManHour");
            return (Criteria) this;
        }

        public Criteria andSlManHourNotLike(String value) {
            addCriterion("sl_man_hour not like", value, "slManHour");
            return (Criteria) this;
        }

        public Criteria andSlManHourIn(List<String> values) {
            addCriterion("sl_man_hour in", values, "slManHour");
            return (Criteria) this;
        }

        public Criteria andSlManHourNotIn(List<String> values) {
            addCriterion("sl_man_hour not in", values, "slManHour");
            return (Criteria) this;
        }

        public Criteria andSlManHourBetween(String value1, String value2) {
            addCriterion("sl_man_hour between", value1, value2, "slManHour");
            return (Criteria) this;
        }

        public Criteria andSlManHourNotBetween(String value1, String value2) {
            addCriterion("sl_man_hour not between", value1, value2, "slManHour");
            return (Criteria) this;
        }

        public Criteria andInitialTypeIsNull() {
            addCriterion("initial_type is null");
            return (Criteria) this;
        }

        public Criteria andInitialTypeIsNotNull() {
            addCriterion("initial_type is not null");
            return (Criteria) this;
        }

        public Criteria andInitialTypeEqualTo(Integer value) {
            addCriterion("initial_type =", value, "initialType");
            return (Criteria) this;
        }

        public Criteria andInitialTypeNotEqualTo(Integer value) {
            addCriterion("initial_type <>", value, "initialType");
            return (Criteria) this;
        }

        public Criteria andInitialTypeGreaterThan(Integer value) {
            addCriterion("initial_type >", value, "initialType");
            return (Criteria) this;
        }

        public Criteria andInitialTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("initial_type >=", value, "initialType");
            return (Criteria) this;
        }

        public Criteria andInitialTypeLessThan(Integer value) {
            addCriterion("initial_type <", value, "initialType");
            return (Criteria) this;
        }

        public Criteria andInitialTypeLessThanOrEqualTo(Integer value) {
            addCriterion("initial_type <=", value, "initialType");
            return (Criteria) this;
        }

        public Criteria andInitialTypeIn(List<Integer> values) {
            addCriterion("initial_type in", values, "initialType");
            return (Criteria) this;
        }

        public Criteria andInitialTypeNotIn(List<Integer> values) {
            addCriterion("initial_type not in", values, "initialType");
            return (Criteria) this;
        }

        public Criteria andInitialTypeBetween(Integer value1, Integer value2) {
            addCriterion("initial_type between", value1, value2, "initialType");
            return (Criteria) this;
        }

        public Criteria andInitialTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("initial_type not between", value1, value2, "initialType");
            return (Criteria) this;
        }

        public Criteria andPkOrgIsNull() {
            addCriterion("pk_org is null");
            return (Criteria) this;
        }

        public Criteria andPkOrgIsNotNull() {
            addCriterion("pk_org is not null");
            return (Criteria) this;
        }

        public Criteria andPkOrgEqualTo(String value) {
            addCriterion("pk_org =", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotEqualTo(String value) {
            addCriterion("pk_org <>", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgGreaterThan(String value) {
            addCriterion("pk_org >", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgGreaterThanOrEqualTo(String value) {
            addCriterion("pk_org >=", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLessThan(String value) {
            addCriterion("pk_org <", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLessThanOrEqualTo(String value) {
            addCriterion("pk_org <=", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLike(String value) {
            addCriterion("pk_org like", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotLike(String value) {
            addCriterion("pk_org not like", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgIn(List<String> values) {
            addCriterion("pk_org in", values, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotIn(List<String> values) {
            addCriterion("pk_org not in", values, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgBetween(String value1, String value2) {
            addCriterion("pk_org between", value1, value2, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotBetween(String value1, String value2) {
            addCriterion("pk_org not between", value1, value2, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andLogogramIsNull() {
            addCriterion("logogram is null");
            return (Criteria) this;
        }

        public Criteria andLogogramIsNotNull() {
            addCriterion("logogram is not null");
            return (Criteria) this;
        }

        public Criteria andLogogramEqualTo(String value) {
            addCriterion("logogram =", value, "logogram");
            return (Criteria) this;
        }

        public Criteria andLogogramNotEqualTo(String value) {
            addCriterion("logogram <>", value, "logogram");
            return (Criteria) this;
        }

        public Criteria andLogogramGreaterThan(String value) {
            addCriterion("logogram >", value, "logogram");
            return (Criteria) this;
        }

        public Criteria andLogogramGreaterThanOrEqualTo(String value) {
            addCriterion("logogram >=", value, "logogram");
            return (Criteria) this;
        }

        public Criteria andLogogramLessThan(String value) {
            addCriterion("logogram <", value, "logogram");
            return (Criteria) this;
        }

        public Criteria andLogogramLessThanOrEqualTo(String value) {
            addCriterion("logogram <=", value, "logogram");
            return (Criteria) this;
        }

        public Criteria andLogogramLike(String value) {
            addCriterion("logogram like", value, "logogram");
            return (Criteria) this;
        }

        public Criteria andLogogramNotLike(String value) {
            addCriterion("logogram not like", value, "logogram");
            return (Criteria) this;
        }

        public Criteria andLogogramIn(List<String> values) {
            addCriterion("logogram in", values, "logogram");
            return (Criteria) this;
        }

        public Criteria andLogogramNotIn(List<String> values) {
            addCriterion("logogram not in", values, "logogram");
            return (Criteria) this;
        }

        public Criteria andLogogramBetween(String value1, String value2) {
            addCriterion("logogram between", value1, value2, "logogram");
            return (Criteria) this;
        }

        public Criteria andLogogramNotBetween(String value1, String value2) {
            addCriterion("logogram not between", value1, value2, "logogram");
            return (Criteria) this;
        }

        public Criteria andActualValueIsNull() {
            addCriterion("actual_value is null");
            return (Criteria) this;
        }

        public Criteria andActualValueIsNotNull() {
            addCriterion("actual_value is not null");
            return (Criteria) this;
        }

        public Criteria andActualValueEqualTo(BigDecimal value) {
            addCriterion("actual_value =", value, "actualValue");
            return (Criteria) this;
        }

        public Criteria andActualValueNotEqualTo(BigDecimal value) {
            addCriterion("actual_value <>", value, "actualValue");
            return (Criteria) this;
        }

        public Criteria andActualValueGreaterThan(BigDecimal value) {
            addCriterion("actual_value >", value, "actualValue");
            return (Criteria) this;
        }

        public Criteria andActualValueGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("actual_value >=", value, "actualValue");
            return (Criteria) this;
        }

        public Criteria andActualValueLessThan(BigDecimal value) {
            addCriterion("actual_value <", value, "actualValue");
            return (Criteria) this;
        }

        public Criteria andActualValueLessThanOrEqualTo(BigDecimal value) {
            addCriterion("actual_value <=", value, "actualValue");
            return (Criteria) this;
        }

        public Criteria andActualValueIn(List<BigDecimal> values) {
            addCriterion("actual_value in", values, "actualValue");
            return (Criteria) this;
        }

        public Criteria andActualValueNotIn(List<BigDecimal> values) {
            addCriterion("actual_value not in", values, "actualValue");
            return (Criteria) this;
        }

        public Criteria andActualValueBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("actual_value between", value1, value2, "actualValue");
            return (Criteria) this;
        }

        public Criteria andActualValueNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("actual_value not between", value1, value2, "actualValue");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andNumIsNull() {
            addCriterion("num is null");
            return (Criteria) this;
        }

        public Criteria andNumIsNotNull() {
            addCriterion("num is not null");
            return (Criteria) this;
        }

        public Criteria andNumEqualTo(Integer value) {
            addCriterion("num =", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotEqualTo(Integer value) {
            addCriterion("num <>", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumGreaterThan(Integer value) {
            addCriterion("num >", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("num >=", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumLessThan(Integer value) {
            addCriterion("num <", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumLessThanOrEqualTo(Integer value) {
            addCriterion("num <=", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumIn(List<Integer> values) {
            addCriterion("num in", values, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotIn(List<Integer> values) {
            addCriterion("num not in", values, "num");
            return (Criteria) this;
        }

        public Criteria andNumBetween(Integer value1, Integer value2) {
            addCriterion("num between", value1, value2, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotBetween(Integer value1, Integer value2) {
            addCriterion("num not between", value1, value2, "num");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}